<%@page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Lab 04</title>
<link rel="stylesheet" type="text/css" href="/gladiator-app/public/css/style.css" />
<link href="/gladiator-app/public/css/uploadify.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/gladiator-app/public/scripts/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/gladiator-app/public/scripts/swfobject.js"></script>
<script type="text/javascript" src="/gladiator-app/public/scripts/jquery.uploadify.v2.1.4.min.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#uploadify").uploadify({
			'uploader' : '/gladiator-app/public/scripts/uploadify.swf',
			'script' : '/gladiator-app/gallery/addPictures2',
			'cancelImg' : '/gladiator-app/public/images/cancel.png',
			'folder' : 'uploads',
			'queueID' : 'fileQueue',
			'queueSizeLimit' : 4,
			'fileDesc' : 'tif,tiff,jpg,bmp,jpeg,eps,pdf',
			'fileExt' : '*.tif;*.tiff;*.jpg;*.bmp;*.jpeg;*.eps;*.pdf',
			'auto' : false,
			'multi' : true,
			'simUploadLimit' : 50,
			'buttonText' : 'Wybierz pliki',
			'removeCompleted' : false,
			'onComplete' : function(event, queueID, fileObj, response, data) {
				location.href = "showAlbums";
			}
		});
	});
</script>
</head>
<body style="background-color: white;">
	<h3>Nazwa albumu: ${albumName}</h3>
	<div >
		<div id="fileQueue"></div>
		<p>
			<input type="file" name="uploadify" id="uploadify" />
		<p>
			<a class="classname"
				href="javascript:jQuery('#uploadify').uploadifyUpload()">Rozpocznij
				wgrywanie plików</a> <a class="classname" href="javascript:jQuery('#uploadify').uploadifyClearQueue()">Wyczyść</a>
		</p>
	</div>
</body>
</html>